﻿# CMakeList.txt: GameServerFramework 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。

add_executable (Network "../Main.cpp" "../Main.h" "ServerSocket.cpp")
#add_executable(Network "ServerSocket.cpp")

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET Network PROPERTY CXX_STANDARD 20)
endif()

if(WIN32)
    target_link_libraries(Network ws2_32)
endif()
if(UNIX AND NOT APPLE)
    target_link_libraries(Network socket nsl)
endif()